<template>
	<view class="content">
		<view class="banner">
			<image src="https://placehold.co/400x430"></image>
		</view>
		<view class="facePlate">
			<view class="fun" @click="toPage('/pages/product/index')">
				<image src="/static/zq.png"></image>
				<h2>门店自取</h2>
				<span>下单免排队</span>
			</view>
			<view class="middle"></view>
			<view class="fun" @click="toPage('/pages/product/index')">
				<image src="/static/wm.png"></image>
				<h2>外卖</h2>
				<span>无需接触，送喜到家</span>
			</view>
		</view>
		<!-- 礼盒模块 -->
		<view class="gift">
			<view class="gift-item">
				<view class="title">
					<image src="/static/lh.png"></image>
					<h2>喜茶百货</h2>
				</view>
				<span>新装气泡水畅饮跟尽兴</span>
			</view>
			<view class="middle"></view>
			<view class="gift-item">
				<view class="title">
					<image src="/static/nc.png"></image>
					<h2>阿喜团餐</h2>
				</view>
				<span>最高显9折火热预定中</span>
			</view>
		</view>
		<!-- 积分模块 -->
		<view class="integration">
			<view class="my" @click="toPage('/pages/code/index')">
				<h2>我的积分 22</h2>
				<span>可兑换奶茶劵</span>
			</view>
			<view class="middle"></view>
			<view class="code">
				<image src="/static/ewm.png"></image>
				<span>会员码</span>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			toPage(path) {
				uni.navigateTo({
					url: path
				})
			}
		}
	}
</script>

<style scoped lang="less">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		overflow: hidden;

		.integration {
			margin-top: 30px;
			display: flex;
			justify-content: space-between;
			align-items: center;

			width: 650rpx;

			.my {
				width: 70%;
				text-align: left;

				h2 {
					font-weight: 600;
					font-size: 16px;
				}

				span {
					color: #b0adab;
					font-size: 12px;
				}
			}

			.middle {
				width: 1px;
				background-color: #f5eeee;
				height: 52px;
			}

			.code {
				display: flex;
				width: 20%;
				flex-direction: column;
				align-items: center;

				image {
					width: 25px;
					height: 25px;

				}

				span {
					margin-top: 10px;
					color: #b0adab;
					font-size: 12px;
				}

				width: 20%;
			}
		}

		.gift {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-top: 130px;
			width: 650rpx;

			.middle {
				width: 15px;
			}

			.gift-item {
				text-align: center;
				background-color: #eaebec;
				border-radius: 10px;
				width: 50%;
				height: 150rpx;

				span {
					font-size: 11px;
					color: #b0adab;
				}

				.title {
					display: flex;
					justify-content: center;
					align-items: center;
					margin-top: 10px;

					image {
						width: 32px;
						height: 32px;
					}

					h2 {
						font-weight: 600;
						font-size: 15px;
						margin-top: 5px;
						margin-left: 5px;
					}
				}

			}
		}

		.banner {
			image {
				width: 800rpx;
				height: 860rpx;
				overflow: hidden;
			}

			overflow: hidden;
		}

		.facePlate {
			position: absolute;
			width: 650rpx;
			height: 350rpx;
			background-color: #fff;
			border-radius: 10px;
			top: 380px;
			box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
			display: flex;
			justify-content: space-between;
			align-items: center;

			.middle {
				width: 1px;
				height: 300rpx;
				background-color: #fafafa;
				overflow: hidden;
			}

			.fun {
				width: 50%;

				image {
					width: 48px;
					height: 48px;
				}

				h2 {
					margin-top: 10px;
					font-size: 18px;
					font-weight: 600;
				}

				text-align: center;

				span {
					margin-top: 5px;
					font-size: 12px;
				}
			}


		}
	}
</style>